<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>


</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

            <div class="cont">
                <div class="cont_title">添加友情链接<span class="tr_op"><a href="<?php echo $this->_url('shoplinks/index');?>">友情链接列表</a></span></div>
<style>

</style>            
		<form action="<?php echo $this->_url('shoplinks/edit/'.$info['id']);?>" method="post"  enctype="multipart/form-data"  onsubmit="return checkForm();">
		<table class="form-table">

			<tr>
				<td>链接名称：</td>
				<td><input class="small-text" type="text" name="data[name]" value="<?php echo $info['name']; ?>" style="width:200px;"  maxlength="50"/> <span id="asd_name_message">*</span></td>
			</tr>
			<tr>
				<td>链接简介：</td>
				<td><input class="small-text" type="text" name="data[content]" value="<?php echo $info['content']; ?>" style="width:200px;"  maxlength="50"/> <span id="asd_name_message">*</span></td>
			</tr>				
			<tr>
				<td>链接地址：</td>
				<td><input class="small-text" type="text" name="data[url]" value="<?php echo $info['url']; ?>" style="width:200px;"  maxlength="200"/> <span id="asd_name_message">*</span></td>
			</tr>
			
			<tr>
				<td>链接图片：</td>
				<td>
                    <input type="file" name="credit_img[]" />
					<input type="hidden" name="data[pic]" value='<?php echo $info['pic']; ?>' />
					<input type="hidden" name="id" value='<?php echo $info['id']; ?>' />				
				<span id="asd_name_message">*</span></td>
			</tr>			
						
			<tr>
				<td width="75px">链接打开目标(默认为当前浏览窗口):</td>
				<td>
	                                      <select name="data[target]">
		                                       <option value="_self" <?php if ($info['target']=='_self') { ?> selected <?php } ?> >_self</option>
		                                       <option value="_blank" <?php if ($info['target']=='_blank') { ?> selected <?php } ?> >_blank</option>
		                                       <option value="_parent" <?php if ($info['target']=='_parent') { ?> selected <?php } ?> >_parent</option>
		                                       <option value="_top" <?php if ($info['target']=='_top') { ?> selected <?php } ?> >_top</option>
	                                     </select>
				<span id="position_id_message">*</span></td>
			</tr>
			
			<tr>
				<td>是否显示：</td>
				<td><input type="checkbox" name="data[is_show]" value="1" <?php if($info['is_show']){ echo "checked"; }?> /></td>
			</tr>
			<tr><td colspan="2"><span class="button-container"><input class="regular-button" type="submit" name="submit" value="修改友情链接" /></span></td></tr>
		</table>
		</form>		  
			  
            </div>
	
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

<script language="JavaScript">
<!--
function checkForm() {
	return true;
}
//-->
</script>

</body>
</html>